#include "cpu/exec/template-start.h"

#define instr sete

static void do_execute() {
    uint8_t result = (cpu.eflags.ZF == 1) ? 1 : 0;
    OPERAND_W(op_src, result);
    print_asm_template1();
}

make_instr_helper(rm)

#undef instr

#define instr setne

static void do_execute() {
    uint8_t result = (cpu.eflags.ZF == 0) ? 1 : 0;
    OPERAND_W(op_src, result);
    print_asm_template1();
}

make_instr_helper(rm)

#include "cpu/exec/template-end.h"